package cn.net.sinodata.system.msghandler.parse.constants;

public class Constant {
    /* 报文模版中的常量 -- 目前报文解析模板暂时不需要 */
    // 模版中支持的标签名称
    public static final String MSG_TPL_TAG_NAME = "tag";
    public static final String MSG_TPL_TAG_NAME_CN = "tagCN";
    public static final String MSG_TPL_TAG_TYPE = "type";
    public static final String MSG_TPL_TAG_CHILDREN = "children";

    // TAG_TYPE 取值
    public static final String MSG_TPL_TYPE_OBJECT = "object";
    public static final String MSG_TPL_TYPE_ARRAY = "array";
    public static final String MSG_TPL_TYPE_FIELD = "field";
    public static final String MSG_TPL_TYPE_REPEAT_GROUP = "repeatGroup";


    /* 实体映射模版中的常量 */
    // 模板中支持的标签
    public static final String ENTITY_MAP_TPL_TAG_SOURCE = "source";  // 源：报文中的标签
    public static final String ENTITY_MAP_TPL_TAG_HANDLER = "handler"; // 自定义处理器
    public static final String ENTITY_MAP_TPL_TAG_FORMAT = "format";  // 源数据格式
    public static final String ENTITY_MAP_TPL_TAG_RANGE = "range"; // 取值范围
    public static final String ENTITY_MAP_TPL_TAG_DEFAULT_VALUE = "defaultValue";  // 默认值
    public static final String ENTITY_MAP_TPL_TAG_MAPPING = "mapping"; // 映射值
    //public static final String ENTITY_MAP_TPL_TAG_CONDITION = "condition"; // 表达式
    public static final String ENTITY_MAP_TPL_TAG_NOT_NULL = "required"; // 必须的（必须存在的字段）
    public static final String ENTITY_MAP_TPL_TAG_TARGET = "target";  // 目的：实体中的字段
    public static final String ENTITY_MAP_TPL_TAG_ENTITY = "entity"; // 映射实体

}
